﻿using System;
using UnityEngine;
using UnityEngine.UI;

// Token: 0x02000390 RID: 912
public class UIStageSelect : MonoBehaviour
{
	// Token: 0x060017D6 RID: 6102 RVA: 0x0009747A File Offset: 0x0009567A
	private void Start()
	{
		this.sceneLoader = UnityEngine.Object.FindObjectOfType<SceneLoader>();
		this.menu = Camera.main.GetComponent<MenuController>();
		this.showStage();
	}

	// Token: 0x060017D7 RID: 6103 RVA: 0x0009749D File Offset: 0x0009569D
	public void switchNextScene()
	{
		this.menu.switchNextScene();
		this.showStage();
	}

	// Token: 0x060017D8 RID: 6104 RVA: 0x000974B0 File Offset: 0x000956B0
	public void switchPreviousScene()
	{
		this.menu.switchPreviousScene();
		this.showStage();
	}

	// Token: 0x060017D9 RID: 6105 RVA: 0x000974C3 File Offset: 0x000956C3
	public void showStage()
	{
		this.actualStage = this.menu.getActiveSceneData();
		this.imagen.sprite = this.actualStage.thumbnail;
	}

	// Token: 0x060017DA RID: 6106 RVA: 0x00002973 File Offset: 0x00000B73
	public void BackButton()
	{
	}

	// Token: 0x060017DB RID: 6107 RVA: 0x000974EC File Offset: 0x000956EC
	public void OkButton()
	{
		this.loadingUI.gameObject.SetActive(true);
		this.sceneLoader.LoadScene(this.actualStage);
	}

	// Token: 0x04001A10 RID: 6672
	private MenuController menu;

	// Token: 0x04001A11 RID: 6673
	private SceneLoader sceneLoader;

	// Token: 0x04001A12 RID: 6674
	private SceneLoader.SceneInfo actualStage;

	// Token: 0x04001A13 RID: 6675
	public Canvas charUI;

	// Token: 0x04001A14 RID: 6676
	public Canvas loadingUI;

	// Token: 0x04001A15 RID: 6677
	public Image imagen;
}
